package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户角色关系表
 *
 * @author blackcat
 * @since 2020-07-21
 */
@Data
@TableName("sec_user_role")
@ApiModel(description = "用户角色关系表")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    @NotNull()
    @Null()
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "角色主键")
    @NotNull
    private Long roleId;

}
